//
var TN_Widget = function() {
var months = ["", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
return {
newWindow : true,
CreateEventRow : function(row, isAlt) {
var t = row[4].split("/");
t[0] = months[t[0]];
t[2] = ", " + t[2];
return "
" +
t[0] + " " + "" + t[1] + "" +
t[2] + " " +
row[3].substring(0,3) + " " +
row[5] + " | " +
row[0] + " " +
row[1] + " - " +
row[2] + " | " + this.btnText + "" +
" |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kwds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
var footerLink = "";
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else if(document.querySelector(".tnpl_results_container") != null) {
document.querySelector(".tnpl_results_container").innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else
document.write("" + newTable.join('') + "" + footerLink + "
");
}
};
}();
//BPW-TNSERV-02A
TN_Widget.AddCss('//s3.amazonaws.com/TNService/pl-widget/styles/tnpl-results-widget.css');
TN_Widget.CreateTable([['Stagecoach Festival: Miranda Lambert, Post Malone & Willie Nelson - Saturday','Empire Polo Field','Indio, CA','Saturday','4/27/2024','12:00 PM','5819013','Stagecoach-Festival--Miranda-Lambert--Post-Malone---Willie-Nelson---Saturday-4-27-2024'],['Willie Nelson & Robert Earl Keen','WhiteWater Amphitheater','New Braunfels, TX','Friday','5/10/2024','8:00 PM','6131192','Willie-Nelson---Robert-Earl-Keen-5-10-2024'],['Willie Nelson & Robert Earl Keen','WhiteWater Amphitheater','New Braunfels, TX','Saturday','5/11/2024','8:00 PM','6131193','Willie-Nelson---Robert-Earl-Keen-5-11-2024'],['Willie Nelson','Outdoor Amphitheater At Lucky Star Casino - Concho','El Reno, OK','Tuesday','5/14/2024','8:00 PM','6306921','Willie-Nelson-5-14-2024'],['Willie Nelson','Pinewood Bowl Theater','Lincoln, NE','Wednesday','5/15/2024','7:00 PM','6215425','Willie-Nelson-5-15-2024'],['Willie Nelson','Breese Stevens Field','Madison, WI','Friday','5/17/2024','6:00 PM','6215426','Willie-Nelson-5-17-2024'],['Willie Nelson','BMO Harris Pavilion','Milwaukee, WI','Saturday','5/18/2024','7:00 PM','6215427','Willie-Nelson-5-18-2024'],['Willie Nelson','Bluestem Center for the Arts Amphitheatre','Moorhead, MN','Monday','5/20/2024','7:00 PM','6215864','Willie-Nelson-5-20-2024'],['Willie Nelson','Bluestem Center for the Arts Amphitheatre','Moorhead, MN','Tuesday','5/21/2024','7:00 PM','6215865','Willie-Nelson-5-21-2024'],['Willie Nelson','Bayfront Festival Park','Duluth, MN','Thursday','5/23/2024','7:00 PM','6215868','Willie-Nelson-5-23-2024']],'"Willie Nelson"','https://www.ticketnetwork.com');